package net.adetech.cjg.innerservice.entity;

import java.util.LinkedList;
import java.util.List;

public class CarInfo {
    private String hphm; //号牌号码
    private String hpzl; //号牌种类
    private String hpzlmc;
    private String clsbdh; //车辆识别代号
    private String fdjh; //发动机号
    private String fzjg; //发证机关
    private String cllx; //车辆类型
    private String cllxmc;
    private String clpp1; //中文品牌
    private String clxh;//车辆型号
    private String csys; //车身颜色
    private String csysmc;
    private String clly; //车辆来源 1注册2转入3过户

    private String yzbm; //邮政编码
    private String zsxxdz; //住所详细地址
    private String sjhm; //手机号码
    private String sfzmhm; //身份证明号码

    private String clyt; //车辆用途
    private String syxz; //使用性质
    private String djrq; //最近检测日期
    private String jyhgbzbh; //检验合格标志
    private String bxzzrq; //保险到期日期
    private String hbdbqk; //环保达标情况
    private String eFlag;//是否新能源汽车
    private String type = "car";
    private String zt;
    private String ztmc;
    private String lxdh;
    private String syr;
    private String xh;
    private String glbm;

    public String getSyr() {
        return syr;
    }

    public void setSyr(String syr) {
        this.syr = syr;
    }

    public String getLxdh() {
        return lxdh;
    }

    public void setLxdh(String lxdh) {
        this.lxdh = lxdh;
    }

    public String getCllxmc() {
        return cllxmc;
    }

    public void setCllxmc(String cllxmc) {
        this.cllxmc = cllxmc;
    }

    public String getHpzlmc() {
        return hpzlmc;
    }

    public void setHpzlmc(String hpzlmc) {
        this.hpzlmc = hpzlmc;
    }

    public String getCllymc() {
        String result = "";
        if ("1".equals(clly)) {
            result = "注册";
        } else if ("2".equals(clly)) {
            result = "转入";
        } else if ("3".equals(clly)) {
            result = "过户";
        }
        return result;
    }


    private String dybj; //抵押状态 0-未抵押，1-已抵押

    public String getDybjmc() {
        String result = "";
        if ("1".equals(dybj)) {
            result = "已抵押";
        } else if ("0".equals(dybj)) {
            result = "未抵押";
        }
        return result;
    }


    public String getEFlagLabel() {
        String result = "";
        if ("1".equals(eFlag)) {
            result = "是";
        } else if ("0".equals(eFlag)) {
            result = "否";
        }
        return result;
    }




    public String getCsysmc() {
        return csysmc;
    }

    public void setCsysmc(String csysmc) {
        this.csysmc = csysmc;
    }

    public String getZtmc() {
        return ztmc;
    }


    public void setZtmc(String ztmc) {
        this.ztmc = ztmc;
    }

    public String getZt() {
        return zt;
    }

    public void setZt(String zt) {
        this.zt = zt;
    }

    private List<ServiceInfo> serviceList = new LinkedList<>();

    public List<ServiceInfo> getServiceList() {
        return serviceList;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setServiceList(List<ServiceInfo> serviceList) {
        this.serviceList = serviceList;
    }

    public String getHphm() {
        return hphm;
    }

    public void setHphm(String hphm) {
        this.hphm = hphm;
    }

    public String getHpzl() {
        return hpzl;
    }

    public void setHpzl(String hpzl) {
        this.hpzl = hpzl;
    }

    public String getClsbdh() {
        return clsbdh;
    }

    public void setClsbdh(String clsbdh) {
        this.clsbdh = clsbdh;
    }

    public String getFdjh() {
        return fdjh;
    }

    public void setFdjh(String fdjh) {
        this.fdjh = fdjh;
    }

    public String getFzjg() {
        return fzjg;
    }

    public void setFzjg(String fzjg) {
        this.fzjg = fzjg;
    }

    public String getCllx() {
        return cllx;
    }

    public void setCllx(String cllx) {
        this.cllx = cllx;
    }

    public String getClpp1() {
        return clpp1;
    }

    public void setClpp1(String clpp1) {
        this.clpp1 = clpp1;
    }

    public String getClxh() {
        return clxh;
    }

    public void setClxh(String clxh) {
        this.clxh = clxh;
    }

    public String getCsys() {
        return csys;
    }

    public void setCsys(String csys) {
        this.csys = csys;
    }

    public String getClly() {
        return clly;
    }

    public void setClly(String clly) {
        this.clly = clly;
    }

    public String getDybj() {
        return dybj;
    }

    public void setDybj(String dybj) {
        this.dybj = dybj;
    }

    public String getClyt() {
        return clyt;
    }

    public void setClyt(String clyt) {
        this.clyt = clyt;
    }

    public String getSyxz() {
        return syxz;
    }

    public void setSyxz(String syxz) {
        this.syxz = syxz;
    }

    public String getDjrq() {

        if (djrq != null && djrq.length() > 10) {
            return djrq.substring(0, 10);
        }
        return djrq;
    }

    public void setDjrq(String djrq) {
        this.djrq = djrq;
    }

    public String getJyhgbzbh() {
        return jyhgbzbh;
    }

    public void setJyhgbzbh(String jyhgbzbh) {
        this.jyhgbzbh = jyhgbzbh;
    }

    public String getBxzzrq()
    {
        if (bxzzrq != null && bxzzrq.length() > 10) {
            return bxzzrq.substring(0, 10).replace("-","");
        }
        return bxzzrq;
    }


    public String getBxsxrq(){
        if(this.getBxzzrq()!=null&&this.getBxzzrq().length()==8)
        {
            return (Integer.parseInt(this.getBxzzrq()) - 10000)+"";
        }
        return null;
    }

    public void setBxzzrq(String bxzzrq) {
        this.bxzzrq = bxzzrq;
    }

    public String getHbdbqk() {
        return hbdbqk;
    }

    public void setHbdbqk(String hbdbqk) {
        this.hbdbqk = hbdbqk;
    }

    public String geteFlag() {
        return eFlag;
    }

    public void seteFlag(String eFlag) {
        this.eFlag = eFlag;
    }


    public String getYzbm() {
        return yzbm;
    }

    public void setYzbm(String yzbm) {
        this.yzbm = yzbm;
    }

    public String getZsxxdz() {
        return zsxxdz;
    }

    public void setZsxxdz(String zsxxdz) {
        this.zsxxdz = zsxxdz;
    }

    public String getSjhm() {
        return sjhm;
    }

    public void setSjhm(String sjhm) {
        this.sjhm = sjhm;
    }

    public String getSfzmhm() {
        return sfzmhm;
    }

    public void setSfzmhm(String sfzmhm) {
        this.sfzmhm = sfzmhm;
    }

    public String getXh() {
        return xh;
    }

    public void setXh(String xh) {
        this.xh = xh;
    }

    public String getGlbm() {
        return glbm;
    }

    public void setGlbm(String glbm) {
        this.glbm = glbm;
    }
}
